package projet.volleystat;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class GestionActivity extends Activity {
	protected Button playersb;
	protected Button teamsb;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_gestion);

		playersb = (Button) findViewById(R.id.playersButton);
		playersb.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getBaseContext(),
						GestionPlayersActivity.class);
				intent.addFlags(android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION);
				startActivity(intent);
			}
		});

		teamsb = (Button) findViewById(R.id.teamsButton);
		teamsb.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getBaseContext(),
						GestionTeamsActivity.class);
				intent.addFlags(android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION);
				startActivity(intent);

			}
		});
	}


	@Override
	public void onPause() {
		super.onPause();
		overridePendingTransition(0, 0);
	}
}
